import request from '@/utils/request'

// 查询续费订单列表
export function listsimRenewOrder(query) {
  return request({
    url: '/sim/simRenewOrderList',
    method: 'get',
    params: query
  })
}

// 查询续费订单详细
export function getsimRenewOrder(id) {
  return request({
    url: '/sim/simRenewOrder/' + id,
    method: 'get'
  })
}

// 新增续费订单
export function addsimRenewOrder(data) {
  return request({
    url: '/sim/simRenewOrder',
    method: 'post',
    data: data
  })
}

// 修改续费订单
export function updatesimRenewOrder(data) {
  return request({
    url: '/sim/simRenewOrder',
    method: 'put',
    data: data
  })
}

// 删除续费订单
export function delsimRenewOrder(id) {
  return request({
    url: '/sim/simRenewOrder/' + id,
    method: 'delete'
  })
}

// 导出续费订单
export function exportsimRenewOrder(query) {
  return request({
    url: '/sim/simRenewOrder/export',
    method: 'get',
    params: query
  })
}

//  查询续费订单卡片列表

export function queryRenewOrderCardList(orderNo) {
  return request({
    url: `/sim/queryRenewOrderCardList/${orderNo}`,
    method: 'get'
  })
}

// /sim/orderStatusStatistics

export function orderStatusStatistics() {
  return request({
    url: `/sim/orderStatusStatistics`,
    method: 'get'
  })
}